package io.binghe.im.openai.infrastructure.service.impl;

import io.binghe.im.openai.common.constants.OpenAIConstants;
import io.binghe.im.openai.domain.service.OpenAIInteractiveService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

import java.io.IOException;

/**
 * @author binghe(微信 : hacker_binghe)
 * @version 1.0.0
 * @description 对接OpenAI
 * @github https://github.com/binghe001
 * @copyright 公众号: 冰河技术
 */
@Service
@ConditionalOnProperty(name = "bh-im-openai.type", havingValue = "palm")
public class PlamOpenAIInteractiveService implements OpenAIInteractiveService {

    @Value("${bh-im-openai.palm.key}")
    private String aiKey;

    @Value("${bh-im-openai.palm.api}")
    private String api;

    @Override
    public String sendMessage(String requestData) throws IOException {
        return OpenAIConstants.DEFAULT_MESSAGE;
    }
}
